<template>
  <div class="all-admin-wrap">
    <div class="content">
      <div class="show-title">
        <span>高速公路网关列表</span>
      </div>
      <mwGatewayTable></mwGatewayTable>
    </div>
    <div
      class="content"
      v-permissions="{
        url: ['mwgateway/register'],
        hasDisplay: true
      }"
    >
      <div class="show-title">
        <span>注册高速公路网关</span>
      </div>
      <mwGatewayAdd></mwGatewayAdd>
    </div>
  </div>
</template>

<script>
import { getData, postData } from "@/request/http";
import mwGatewayTable from "./coms/mwGatewayTable";
import mwGatewayAdd from "./coms/mwGatewayAdd";

export default {
  components: {
    mwGatewayTable,
    mwGatewayAdd
  },
  name: "mwGateway",
  data() {
    return {};
  },
  methods: {},
  mounted: function() {}
};
</script>
<style scoped>
.all-admin-wrap {
  margin-bottom: 20px;
  border-radius: 4px;
  border: 1px solid #ebeef5;
  overflow: hidden;
  color: #303133;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  /* background: #fff; */
}
.content {
  background: #fff;
  border-radius: 10px 10px 0 0;
}
.content:nth-child(2) {
  margin-top: 20px;
}
/*title*/
.show-title {
  width: 100%;
  height: 40px;
  line-height: 40px;
  position: relative;
  background: #c0dee2;
  padding-left: 15px;
  font-size: 14px;
  margin: 6px 0 20px 0;
  border-radius: 12px 12px 0 0;
  font-weight: bold;
}

.show-title::before {
  content: "";
  width: 2px;
  height: 16px;
  background: #676a6d;
  position: absolute;
  top: 12px;
  left: 27px;
}

.show-title span {
  float: left;
  color: #676a6d;
  margin-left: 25px;
}
</style>
